from redis import StrictRedis
class Config(object):
    SECRET_KEY = 'qlLIWSn8fszFyXHx4w2uf4aXrJT3F9D2D0cW+scI'
    SQLALCHEMY_DATABASE_URI = 'mysql://root:mysql@localhost/info18'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SESSION_TYPE = 'redis'
    SESSION_REDIS = StrictRedis(host='127.0.0.1',port=6379)
    SESSION_USE_SINGER = True
    PERMANENT_SESSION_LIFETIME = 86400
    DEBUG = True